package com.ruleengine.worker.model;

import com.ruleengine.util.model.Metadata;

import lombok.Builder;
import lombok.Getter;

/**
 * @author lianghanwei on 2024/3/3
 */
@Builder(toBuilder = true)
@Getter
public class Relation {

    @Builder.Default
    private String apiVersion = "v1";

    @Builder.Default
    private ResourceKind kind = ResourceKind.RELATION;

    private Metadata metadata;

    private Spec spec;

    private Status status;

    @Builder(toBuilder = true)
    @Getter
    public static class Spec {

        private Rule upper;

        private Rule down;

    }

}
